; RUN: opt < %s -load /home/user/Research/llvm-2.9-build-eclipse/lib/LLVMmpia.so \
; RUN:    -arraytracking -S -disable-output

; ModuleID = 'comm_time_5.ll'
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32"
target triple = "i386-pc-linux-gnu"

%struct.MPI_Status = type { i32, i32, i32, i32, i32 }
%struct._IO_FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct._IO_FILE*, i32, i32, i32, i16, i8, [1 x i8], i8*, i64, i8*, i8*, i8*, i8*, i32, i32, [40 x i8] }
%struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, i32 }
%struct.ompi_communicator_t = type opaque
%struct.ompi_datatype_t = type opaque
%struct.ompi_predefined_communicator_t = type opaque
%struct.ompi_predefined_datatype_t = type opaque

@ompi_mpi_comm_world = external global %struct.ompi_predefined_communicator_t
@.str = private constant [1 x i8] zeroinitializer, align 1
@.str1 = private constant [40 x i8] c"Before Initialize, p = %d, my_rank = %d\00", align 4
@.str2 = private constant [48 x i8] c"Before if, my_rank = %d, source = %d, dest = %d\00", align 4
@.str3 = private constant [44 x i8] c"Before send x[0] = %f, size = %d, dest = %d\00", align 4
@ompi_mpi_float = external global %struct.ompi_predefined_datatype_t
@.str4 = private constant [45 x i8] c"After recv x[0] = %f, size = %d, source = %d\00", align 4
@ompi_mpi_double = external global %struct.ompi_predefined_datatype_t
@.str5 = private constant [25 x i8] c"Message size (floats):  \00", align 1
@.str6 = private constant [6 x i8] c"%10d \00", align 1
@.str7 = private constant [25 x i8] c"Avg circuit time (ms):  \00", align 1
@.str8 = private constant [6 x i8] c"%10f \00", align 1
@.str9 = private constant [25 x i8] c"Max circuit time (ms):  \00", align 1
@.str10 = private constant [25 x i8] c"Min circuit time (ms):  \00", align 1
@.str11 = private constant [2 x i8] c"\0A\00", align 1
@stdout = external global %struct._IO_FILE*

define i32 @main(i32 %argc, i8** %argv) nounwind {
entry:
  %argc_addr = alloca i32, align 4
  %argv_addr = alloca i8**, align 4
  %x = alloca float*
  %times = alloca double*
  %max_times = alloca double*
  %min_times = alloca double*
  %time_array_order = alloca i32
  %p = alloca i32
  %my_rank = alloca i32
  %io_comm = alloca %struct.ompi_communicator_t*
  %status = alloca %struct.MPI_Status
  %"alloca point" = bitcast i32 0 to i32
  store i32 %argc, i32* %argc_addr
  store i8** %argv, i8*** %argv_addr
  %0 = call i32 @MPI_Init(i32* %argc_addr, i8*** %argv_addr) nounwind
  %1 = call i32 @MPI_Comm_size(%struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*), i32* %p) nounwind
  %2 = call i32 @MPI_Comm_rank(%struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*), i32* %my_rank) nounwind
  %3 = call i32 @MPI_Comm_dup(%struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*), %struct.ompi_communicator_t** %io_comm) nounwind
  %4 = load %struct.ompi_communicator_t** %io_comm, align 4
  %5 = call i32 @Cache_io_rank(%struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*), %struct.ompi_communicator_t* %4) nounwind
  %6 = load i32* %my_rank, align 4
  %7 = load i32* %p, align 4
  %8 = load %struct.ompi_communicator_t** %io_comm, align 4
  %9 = call i32 (%struct.ompi_communicator_t*, i8*, i8*, ...)* @Cprintf(%struct.ompi_communicator_t* %8, i8* getelementptr inbounds ([1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([40 x i8]* @.str1, i32 0, i32 0), i32 %7, i32 %6) nounwind
  %10 = load i32* %my_rank, align 4
  call void @Initialize(i32 1000, i32 0, i32 1000, i32 %10, float** %x, double** %times, double** %max_times, double** %min_times, i32* %time_array_order) nounwind
  %11 = load i32* %my_rank, align 4
  %12 = sub nsw i32 %11, 1
  %13 = load i32* %p, align 4
  %14 = add nsw i32 %12, %13
  %15 = load i32* %p, align 4
  %16 = srem i32 %14, %15
  %17 = load i32* %my_rank, align 4
  %18 = add nsw i32 %17, 1
  %19 = load i32* %p, align 4
  %20 = srem i32 %18, %19
  br label %bb13

bb:                                               ; preds = %bb13
  %21 = load i32* %my_rank, align 4
  %22 = load %struct.ompi_communicator_t** %io_comm, align 4
  %23 = call i32 (%struct.ompi_communicator_t*, i8*, i8*, ...)* @Cprintf(%struct.ompi_communicator_t* %22, i8* getelementptr inbounds ([1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([48 x i8]* @.str2, i32 0, i32 0), i32 %21, i32 %16, i32 %20) nounwind
  %24 = load i32* %my_rank, align 4
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %bb1, label %bb9

bb1:                                              ; preds = %bb
  %26 = load double** %times, align 4
  %27 = getelementptr inbounds double* %26, i32 %i.0
  store double 0.000000e+00, double* %27, align 1
  %28 = load double** %max_times, align 4
  %29 = getelementptr inbounds double* %28, i32 %i.0
  store double 0.000000e+00, double* %29, align 1
  %30 = load double** %min_times, align 4
  %31 = getelementptr inbounds double* %30, i32 %i.0
  store double 1.000000e+06, double* %31, align 1
  br label %bb7

bb2:                                              ; preds = %bb7
  %32 = call double @MPI_Wtime() nounwind
  %33 = load float** %x, align 4
  %34 = getelementptr inbounds float* %33, i32 0
  %35 = load float* %34, align 1
  %36 = fpext float %35 to double
  %37 = load i32* %my_rank, align 4
  %38 = load %struct.ompi_communicator_t** %io_comm, align 4
  %39 = call i32 (%struct.ompi_communicator_t*, i8*, i8*, ...)* @Cprintf(%struct.ompi_communicator_t* %38, i8* getelementptr inbounds ([1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8]* @.str3, i32 0, i32 0), i32 %37, double %36, i32 %size.0, i32 %20) nounwind
  %40 = load float** %x, align 4
  %41 = bitcast float* %40 to i8*
  %42 = call i32 @MPI_Send(i8* %41, i32 %size.0, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_float to %struct.ompi_datatype_t*), i32 %20, i32 0, %struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*)) nounwind
  %43 = load float** %x, align 4
  %44 = bitcast float* %43 to i8*
  %45 = call i32 @MPI_Recv(i8* %44, i32 %size.0, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_float to %struct.ompi_datatype_t*), i32 %16, i32 0, %struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*), %struct.MPI_Status* %status) nounwind
  %46 = load float** %x, align 4
  %47 = getelementptr inbounds float* %46, i32 0
  %48 = load float* %47, align 1
  %49 = fpext float %48 to double
  %50 = load i32* %my_rank, align 4
  %51 = load %struct.ompi_communicator_t** %io_comm, align 4
  %52 = call i32 (%struct.ompi_communicator_t*, i8*, i8*, ...)* @Cprintf(%struct.ompi_communicator_t* %51, i8* getelementptr inbounds ([1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([45 x i8]* @.str4, i32 0, i32 0), i32 %50, double %49, i32 %size.0, i32 %16) nounwind
  %53 = call double @MPI_Wtime() nounwind
  %54 = fsub double %53, %32
  %55 = load double** %times, align 4
  %56 = load double** %times, align 4
  %57 = getelementptr inbounds double* %56, i32 %i.0
  %58 = load double* %57, align 1
  %59 = fadd double %58, %54
  %60 = getelementptr inbounds double* %55, i32 %i.0
  store double %59, double* %60, align 1
  %61 = load double** %max_times, align 4
  %62 = getelementptr inbounds double* %61, i32 %i.0
  %63 = load double* %62, align 1
  %64 = fcmp olt double %63, %54
  br i1 %64, label %bb3, label %bb4

bb3:                                              ; preds = %bb2
  %65 = load double** %max_times, align 4
  %66 = getelementptr inbounds double* %65, i32 %i.0
  store double %54, double* %66, align 1
  br label %bb4

bb4:                                              ; preds = %bb3, %bb2
  %67 = load double** %min_times, align 4
  %68 = getelementptr inbounds double* %67, i32 %i.0
  %69 = load double* %68, align 1
  %70 = fcmp ogt double %69, %54
  br i1 %70, label %bb5, label %bb6

bb5:                                              ; preds = %bb4
  %71 = load double** %min_times, align 4
  %72 = getelementptr inbounds double* %71, i32 %i.0
  store double %54, double* %72, align 1
  br label %bb6

bb6:                                              ; preds = %bb5, %bb4
  %73 = add nsw i32 %test.0, 1
  br label %bb7

bb7:                                              ; preds = %bb6, %bb1
  %test.0 = phi i32 [ 0, %bb1 ], [ %73, %bb6 ]
  %74 = icmp slt i32 %test.0, 2
  br i1 %74, label %bb2, label %bb8

bb8:                                              ; preds = %bb7
  br label %bb12

bb9:                                              ; preds = %bb
  br label %bb11

bb10:                                             ; preds = %bb11
  %75 = load float** %x, align 4
  %76 = bitcast float* %75 to i8*
  %77 = call i32 @MPI_Recv(i8* %76, i32 %size.0, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_float to %struct.ompi_datatype_t*), i32 %16, i32 0, %struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*), %struct.MPI_Status* %status) nounwind
  %78 = load float** %x, align 4
  %79 = getelementptr inbounds float* %78, i32 0
  %80 = load float* %79, align 1
  %81 = fpext float %80 to double
  %82 = load i32* %my_rank, align 4
  %83 = load %struct.ompi_communicator_t** %io_comm, align 4
  %84 = call i32 (%struct.ompi_communicator_t*, i8*, i8*, ...)* @Cprintf(%struct.ompi_communicator_t* %83, i8* getelementptr inbounds ([1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([45 x i8]* @.str4, i32 0, i32 0), i32 %82, double %81, i32 %size.0, i32 %16) nounwind
  %85 = load float** %x, align 4
  %86 = getelementptr inbounds float* %85, i32 0
  %87 = load float* %86, align 1
  %88 = fpext float %87 to double
  %89 = load i32* %my_rank, align 4
  %90 = load %struct.ompi_communicator_t** %io_comm, align 4
  %91 = call i32 (%struct.ompi_communicator_t*, i8*, i8*, ...)* @Cprintf(%struct.ompi_communicator_t* %90, i8* getelementptr inbounds ([1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8]* @.str3, i32 0, i32 0), i32 %89, double %88, i32 %size.0, i32 %20) nounwind
  %92 = load float** %x, align 4
  %93 = bitcast float* %92 to i8*
  %94 = call i32 @MPI_Send(i8* %93, i32 %size.0, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_float to %struct.ompi_datatype_t*), i32 %20, i32 0, %struct.ompi_communicator_t* bitcast (%struct.ompi_predefined_communicator_t* @ompi_mpi_comm_world to %struct.ompi_communicator_t*)) nounwind
  %95 = add nsw i32 %test.1, 1
  br label %bb11

bb11:                                             ; preds = %bb10, %bb9
  %test.1 = phi i32 [ 0, %bb9 ], [ %95, %bb10 ]
  %96 = icmp slt i32 %test.1, 2
  br i1 %96, label %bb10, label %bb12

bb12:                                             ; preds = %bb11, %bb8
  %97 = add nsw i32 %size.0, 1000
  %98 = add nsw i32 %i.0, 1
  br label %bb13

bb13:                                             ; preds = %bb12, %entry
  %i.0 = phi i32 [ 0, %entry ], [ %98, %bb12 ]
  %size.0 = phi i32 [ 0, %entry ], [ %97, %bb12 ]
  %99 = icmp sle i32 %size.0, 1000
  br i1 %99, label %bb, label %bb14

bb14:                                             ; preds = %bb13
  %100 = load double** %min_times, align 4
  %101 = load double** %max_times, align 4
  %102 = load double** %times, align 4
  %103 = load i32* %time_array_order, align 4
  %104 = load i32* %my_rank, align 4
  %105 = load %struct.ompi_communicator_t** %io_comm, align 4
  call void @Print_results(%struct.ompi_communicator_t* %105, i32 %104, i32 0, i32 1000, i32 1000, i32 %103, i32 2, double* %102, double* %101, double* %100) nounwind
  %106 = call i32 @MPI_Finalize() nounwind
  br label %return

return:                                           ; preds = %bb14
  ret i32 undef
}

declare i32 @MPI_Init(i32*, i8***)

declare i32 @MPI_Comm_size(%struct.ompi_communicator_t*, i32*)

declare i32 @MPI_Comm_rank(%struct.ompi_communicator_t*, i32*)

declare i32 @MPI_Comm_dup(%struct.ompi_communicator_t*, %struct.ompi_communicator_t**)

declare i32 @Cache_io_rank(%struct.ompi_communicator_t*, %struct.ompi_communicator_t*)

declare i32 @Cprintf(%struct.ompi_communicator_t*, i8*, i8*, ...)

declare double @MPI_Wtime()

declare i32 @MPI_Send(i8*, i32, %struct.ompi_datatype_t*, i32, i32, %struct.ompi_communicator_t*)

declare i32 @MPI_Recv(i8*, i32, %struct.ompi_datatype_t*, i32, i32, %struct.ompi_communicator_t*, %struct.MPI_Status*)

declare i32 @MPI_Finalize()

define void @Initialize(i32 %max_size, i32 %min_size, i32 %size_incr, i32 %my_rank, float** %x_ptr, double** %times_ptr, double** %max_times_ptr, double** %min_times_ptr, i32* %order_ptr) nounwind {
entry:
  %"alloca point" = bitcast i32 0 to i32
  %0 = mul i32 %max_size, 4
  %1 = call noalias i8* @malloc(i32 %0) nounwind
  %2 = bitcast i8* %1 to float*
  store float* %2, float** %x_ptr, align 4
  %3 = sub nsw i32 %max_size, %min_size
  %4 = sdiv i32 %3, %size_incr
  %5 = add nsw i32 %4, 1
  store i32 %5, i32* %order_ptr, align 4
  %6 = load i32* %order_ptr, align 4
  %7 = mul i32 %6, 8
  %8 = call noalias i8* @malloc(i32 %7) nounwind
  %9 = bitcast i8* %8 to double*
  store double* %9, double** %times_ptr, align 4
  %10 = load i32* %order_ptr, align 4
  %11 = mul i32 %10, 8
  %12 = call noalias i8* @malloc(i32 %11) nounwind
  %13 = bitcast i8* %12 to double*
  store double* %13, double** %max_times_ptr, align 4
  %14 = load i32* %order_ptr, align 4
  %15 = mul i32 %14, 8
  %16 = call noalias i8* @malloc(i32 %15) nounwind
  %17 = bitcast i8* %16 to double*
  store double* %17, double** %min_times_ptr, align 4
  br label %bb1

bb:                                               ; preds = %bb1
  %18 = load float** %x_ptr, align 4
  %19 = sitofp i32 %my_rank to float
  %20 = getelementptr inbounds float* %18, i32 %i.0
  store float %19, float* %20, align 1
  %21 = add nsw i32 %i.0, 1
  br label %bb1

bb1:                                              ; preds = %bb, %entry
  %i.0 = phi i32 [ 0, %entry ], [ %21, %bb ]
  %22 = icmp slt i32 %i.0, %max_size
  br i1 %22, label %bb, label %bb2

bb2:                                              ; preds = %bb1
  br label %return

return:                                           ; preds = %bb2
  ret void
}

declare noalias i8* @malloc(i32) nounwind

define void @Print_results(%struct.ompi_communicator_t* %io_comm, i32 %my_rank, i32 %min_size, i32 %max_size, i32 %size_incr, i32 %time_array_order, i32 %test_count, double* %times, double* %max_times, double* %min_times) nounwind {
entry:
  %status = alloca %struct.MPI_Status
  %io_process = alloca i32
  %io_rank = alloca i32
  %"alloca point" = bitcast i32 0 to i32
  %0 = call i32 @Get_io_rank(%struct.ompi_communicator_t* %io_comm, i32* %io_process) nounwind
  %1 = call i32 @MPI_Comm_rank(%struct.ompi_communicator_t* %io_comm, i32* %io_rank) nounwind
  %2 = icmp eq i32 %my_rank, 0
  br i1 %2, label %bb, label %bb1

bb:                                               ; preds = %entry
  %3 = load i32* %io_rank, align 4
  %4 = bitcast double* %times to i8*
  %5 = call i32 @MPI_Send(i8* %4, i32 %time_array_order, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_double to %struct.ompi_datatype_t*), i32 %3, i32 0, %struct.ompi_communicator_t* %io_comm) nounwind
  %6 = load i32* %io_process, align 4
  %7 = bitcast double* %max_times to i8*
  %8 = call i32 @MPI_Send(i8* %7, i32 %time_array_order, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_double to %struct.ompi_datatype_t*), i32 %6, i32 0, %struct.ompi_communicator_t* %io_comm) nounwind
  %9 = load i32* %io_process, align 4
  %10 = bitcast double* %min_times to i8*
  %11 = call i32 @MPI_Send(i8* %10, i32 %time_array_order, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_double to %struct.ompi_datatype_t*), i32 %9, i32 0, %struct.ompi_communicator_t* %io_comm) nounwind
  br label %bb1

bb1:                                              ; preds = %bb, %entry
  %12 = load i32* %io_rank, align 4
  %13 = load i32* %io_process, align 4
  %14 = icmp eq i32 %12, %13
  br i1 %14, label %bb2, label %bb15

bb2:                                              ; preds = %bb1
  %15 = bitcast double* %times to i8*
  %16 = call i32 @MPI_Recv(i8* %15, i32 %time_array_order, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_double to %struct.ompi_datatype_t*), i32 -1, i32 0, %struct.ompi_communicator_t* %io_comm, %struct.MPI_Status* %status) nounwind
  %17 = bitcast double* %max_times to i8*
  %18 = call i32 @MPI_Recv(i8* %17, i32 %time_array_order, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_double to %struct.ompi_datatype_t*), i32 -1, i32 0, %struct.ompi_communicator_t* %io_comm, %struct.MPI_Status* %status) nounwind
  %19 = bitcast double* %min_times to i8*
  %20 = call i32 @MPI_Recv(i8* %19, i32 %time_array_order, %struct.ompi_datatype_t* bitcast (%struct.ompi_predefined_datatype_t* @ompi_mpi_double to %struct.ompi_datatype_t*), i32 -1, i32 0, %struct.ompi_communicator_t* %io_comm, %struct.MPI_Status* %status) nounwind
  %21 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([25 x i8]* @.str5, i32 0, i32 0)) nounwind
  br label %bb4

bb3:                                              ; preds = %bb4
  %22 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([6 x i8]* @.str6, i32 0, i32 0), i32 %size.0) nounwind
  %23 = add nsw i32 %size.0, %size_incr
  br label %bb4

bb4:                                              ; preds = %bb3, %bb2
  %size.0 = phi i32 [ %min_size, %bb2 ], [ %23, %bb3 ]
  %24 = icmp sle i32 %size.0, %max_size
  br i1 %24, label %bb3, label %bb5

bb5:                                              ; preds = %bb4
  %25 = call i32 @putchar(i32 10) nounwind
  %26 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([25 x i8]* @.str7, i32 0, i32 0)) nounwind
  br label %bb7

bb6:                                              ; preds = %bb7
  %27 = getelementptr inbounds double* %times, i32 %i.0
  %28 = load double* %27, align 1
  %29 = fmul double %28, 1.000000e+03
  %30 = sitofp i32 %test_count to double
  %31 = fdiv double %29, %30
  %32 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([6 x i8]* @.str8, i32 0, i32 0), double %31) nounwind
  %33 = add nsw i32 %i.0, 1
  br label %bb7

bb7:                                              ; preds = %bb6, %bb5
  %i.0 = phi i32 [ 0, %bb5 ], [ %33, %bb6 ]
  %34 = icmp slt i32 %i.0, %time_array_order
  br i1 %34, label %bb6, label %bb8

bb8:                                              ; preds = %bb7
  %35 = call i32 @putchar(i32 10) nounwind
  %36 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([25 x i8]* @.str9, i32 0, i32 0)) nounwind
  br label %bb10

bb9:                                              ; preds = %bb10
  %37 = getelementptr inbounds double* %max_times, i32 %i.1
  %38 = load double* %37, align 1
  %39 = fmul double %38, 1.000000e+03
  %40 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([6 x i8]* @.str8, i32 0, i32 0), double %39) nounwind
  %41 = add nsw i32 %i.1, 1
  br label %bb10

bb10:                                             ; preds = %bb9, %bb8
  %i.1 = phi i32 [ 0, %bb8 ], [ %41, %bb9 ]
  %42 = icmp slt i32 %i.1, %time_array_order
  br i1 %42, label %bb9, label %bb11

bb11:                                             ; preds = %bb10
  %43 = call i32 @putchar(i32 10) nounwind
  %44 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([25 x i8]* @.str10, i32 0, i32 0)) nounwind
  br label %bb13

bb12:                                             ; preds = %bb13
  %45 = getelementptr inbounds double* %min_times, i32 %i.2
  %46 = load double* %45, align 1
  %47 = fmul double %46, 1.000000e+03
  %48 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([6 x i8]* @.str8, i32 0, i32 0), double %47) nounwind
  %49 = add nsw i32 %i.2, 1
  br label %bb13

bb13:                                             ; preds = %bb12, %bb11
  %i.2 = phi i32 [ 0, %bb11 ], [ %49, %bb12 ]
  %50 = icmp slt i32 %i.2, %time_array_order
  br i1 %50, label %bb12, label %bb14

bb14:                                             ; preds = %bb13
  %51 = call i32 @puts(i8* getelementptr inbounds ([2 x i8]* @.str11, i32 0, i32 0)) nounwind
  %52 = load %struct._IO_FILE** @stdout, align 4
  %53 = call i32 @fflush(%struct._IO_FILE* %52) nounwind
  br label %bb15

bb15:                                             ; preds = %bb14, %bb1
  br label %return

return:                                           ; preds = %bb15
  ret void
}

declare i32 @Get_io_rank(%struct.ompi_communicator_t*, i32*)

declare i32 @printf(i8* noalias, ...) nounwind

declare i32 @putchar(i32)

declare i32 @puts(i8*)

declare i32 @fflush(%struct._IO_FILE*)
